using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace Me_Browser
{
    public partial class windowBrowser : Form
    {
        public windowBrowser()
        {
            InitializeComponent();
        }

        private void go_Click(object sender, EventArgs e)
        {
            browser.Navigate(url.Text.ToString());

        }

        private void url_KeyPress(object sender, KeyPressEventArgs e)
        {
            if (e.KeyChar.Equals(Keys.Enter))
            {
                browser.Navigate(url.Text.ToString());
            }
        }

        private void url_KeyPress_1(object sender, KeyPressEventArgs e)
        {
            Focus();
            if (e.KeyChar.Equals(Keys.Enter))
            {
                browser.Navigate(url.Text.ToString());
                
            }
        }

        private void windowBrowser_Load(object sender, EventArgs e)
        {
            Focus();
        }

        private void toolStripButton1_Click(object sender, EventArgs e)
        {

        }

        private void url_Enter(object sender, EventArgs e)
        {
            Focus();

        }



    }
}